// 1. 模块的导入导出
/* const age = 12;
const addFn = (x, y) => {
  return x + y;
};

module.exports = {
  age: age,
  addFn: addFn,
}; */

// 2. module
// console.log(module);

// 3. exports
// exports.name = "aaa";

// 4. 同步加载
/* let name = "lg";
let iTime = new Date();
while (new Date() - iTime < 4000) {}
module.exports = name;
console.log("m.js本加载导入了");

是否时主模块
console.log(require.main === module); */

// 02_require-load.js
module.exports = "lg";
